package com.mybatis.service.serviceimpl;

import com.mybatis.entity.TFile;
import com.mybatis.mapper.TFileMapper;
import com.mybatis.service.TFileService;
import com.mybatis.utils.ResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 2756779610@qq.com on 2021/12/13 11:08
 * CHANGE ACTIVITY:
 * <p>
 * Reason      Version    Date        User        Description
 * ------------ ---------- ----------- ----------- -------------------
 * <p>
 * END CHANGE ACTIVITY
 */
@Service
public class TFileServiceImpl implements TFileService {

    @Autowired(required = false)
    private TFileMapper tFileMapper;

    public ResultUtils findAllByFileName(String fileName) {
        List<TFile> list=  tFileMapper.findAllByFileName(fileName);
        return ResultUtils.ok(list);
    }
}
